<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of TemplateClass
 *
 * @author Administrador
 */
class TemplateClass {

    //put your code here
   

    public static function TITLE(){
        echo("SPC-Sistema de Prestação de Contas");
    }
    public static function LIB($path){
        echo(
    "<link href=\"".$path."css/global.css\" rel=\"stylesheet\" type=\"text/css\" />\n".
    "<link rel=\"stylesheet\" href=\"".$path."bootstrap/css/bootstrap.min.css\">".
    "<link rel=\"stylesheet\" href=\"".$path."css/global.css\">".
    "<link rel=\"stylesheet\" href=\"".$path."bootstrap/css/bootstrap-theme.min.css\">".

    "<script type=\"text/javascript\" src=\"http://code.jquery.com/jquery.min.js\"></script>".
    "<script src=\"".$path."bootstrap/js/bootstrap.min.js\"></script>".

    "<!--[if lt IE 9]>
    <script src=\"//html5shim.googlecode.com/svn/trunk/html5.js\"></script>
    <![endif]-->".
    "<link rel=\"shortcut icon\" href=\"".$path."/bootstrap/img/favicon.ico\">".
    "<link rel=\"apple-touch-icon\" href=\"".$path."/bootstrap/img/apple-touch-icon.png\">".
    "<link rel=\"apple-touch-icon\" sizes=\"72x72\" href=\"".$path."/bootstrap/img/apple-touch-icon-72x72.png\">".
    "<link rel=\"apple-touch-icon\" sizes=\"114x114\" href=\"".$path."/bootstrap/img/apple-touch-icon-114x114.png\">".
    
    "<script type=\"text/javascript\" src=\"./js/funcoes.js\"></script>\n
   
    <script type=\"text/javascript\" src=\"./js/jquery.maskMoney.js\"></script>\n
    <script type=\"text/javascript\" src=\"./js/jquery.cpf-validate.1.0.min.js\"></script>\n
    <script type=\"text/javascript\" src=\"./js/jquery.maskedinput.min.js\"></script>\n
    <script type=\"text/javascript\" src=\"./js/jquery.validate.js\"></script>\n


    <!-- CSS code from Bootply.com editor -->

    <style type=\"text/css\">
        .container {
            margin: 0 auto;
            max-width: 960px;
        }

    </style>");
    }
    public static function MENU_BAR($path) {
        echo(
       "<style type=\"text/css\">
        .logo {
            position:absolute;
            left:0px;
            top:0px;
        }
        .logout{
           position:relative;
            left:138%;
            top:13px;
        }
      

    </style>
            <div>
                <ul class=\"nav navbar-nav\">

                <a href=\"pagina_principal.php\"><img class=\"logo\" src=\"".$path."img/Sudeco-Logo-PNG.png\" width=\"150\" height=\"48\" alt=\"Voltar para página inicial\" title=\"Voltar para página inicial\"border=\"0\"></a>
                <a class=\"logout\" href=\"logout.php\" ><img src=\"".$path."img/Logout.png\" width=\"24\" height=\"24\"></a>

                    <li><a href=\"#\">Página Inicial</a></li>

                    <li class=\"dropdown\">
                        <a href=\"#\" data-toggle=\"dropdown\" class=\"dropdown-toggle\">Usuário<b class=\"caret\"></b></a>
                        <ul class=\"dropdown-menu\">
                            <li>
                       
                    </li>
                        </ul>
                    </li>  
                    <li class=\"dropdown\">
                        <a href=\"#\" data-toggle=\"dropdown\" class=\"dropdown-toggle\">Equipamento<b class=\"caret\"></b></a>
                        <ul class=\"dropdown-menu\">
                            <li><a  href=\"pesquisar_controle.php\">Pesquisar</a></li>
                            <li><a  href=\"formulario_cadastro.php\">Cadastrar</a></li>
                            <li><a  href=\"pesquisar_checklist.php\">CHECK LIST</a></li>
                        </ul>
                    </li>                

                    <li class=\"dropdown\">
                        <a href=\"#\" data-toggle=\"dropdown\" class=\"dropdown-toggle\">Capacitação <b class=\"caret\"></b></a>
                        <ul class=\"dropdown-menu\">
                            <li><a  href=\"pesquisar_controle_capacitacao.php\">Pesquisar</a></li>
                            <li><a  href=\"formulario_cadastro_capacitacao.php\">Cadastrar</a></li>
                            <li><a  href=\"pesquisar_checklist_capacitacao.php\">Check List</a> </li>
                        </ul>
                    </li>
                </ul>
            </div>    ");
    }
    
    public static function PANEL($title,$content){
        echo(""
                ."<div class=\"panel panel-default\">
                <div class=\"panel-heading\">
                    <h3 class=\"panel-title\">$title</h3>
                </div>
                <div class=\"panel-body\">

                   $content

                </div>
            </div>");
        
    }
    
    
    public static function EDIT_BUTTON($url,$tipText){
        return "<a href=\"$url\"><button title=\"$tipText\" class=\"btn btn-default btn-sm dropdown-toggle\" type=\"button\" >"
            . "<span class=\"glyphicon glyphicon-pencil\"></span></button></a>";
    }
    public static function LOOK_BUTTON($url,$tipText){
        return "<a href=\"$url\"><button title=\"$tipText\" class=\"btn btn-default btn-sm dropdown-toggle\" type=\"button\" >"
            . "<span class=\"glyphicon glyphicon-eye-open\"></span></button></a>";
    }
    
    public static function ACCOUNTABILITY_BUTTON($url,$tipText){
        return "<a href=\"$url\"><button title=\"$tipText\" class=\"btn btn-default btn-sm dropdown-toggle\" type=\"button\" >"
            . "<span class=\"glyphicon glyphicon-usd\"></span></button></a>";
    }
    
    public static function DISABLE_BUTTON($url){
        return "<a href=\"$url\"><button title=\"Ativar/Inativar Usuário\" class=\"btn btn-default btn-sm dropdown-toggle\" type=\"button\" >"
            . "<span class=\"glyphicon glyphicon-off\"></span></button></a>";
    }
    
    public static function CREATE_BUTTON($url,$tip_text){
        echo "<a href=\"$url\"><button title=\"$tip_text\" class=\"btn btn-primary  pull-right create_button \"><span class=\"glyphicon glyphicon-file\"></span> Novo </button></a>";
    }
    
    public static function SEARCH_BUTTON(){
        echo "<button class=\"btn btn-primary  pull-right create_button \"><span class=\"glyphicon glyphicon-search\"></span> Pesquisar </button>";
    }
    
    public static function SAVE_BUTTON(){
        echo "<button type=\"submit\" class=\"btn btn-primary pull-right\">"
        . "<span class=\"glyphicon glyphicon-floppy-disk\"></span> Salvar</button>";
    }
    
    public static function UPDATE_BUTTON(){
        echo "<button type=\"submit\" class=\"btn btn-primary pull-right\">"
        . "<span class=\"glyphicon glyphicon-pencil\"></span> Atualizar</button>";
    }
    
    public static function PREVIOUS_PAGE_BUTTON(){
        echo "<button onclick=\"window.history.back()\" type=\"submit\" class=\"btn btn-default\">"
        . "<span class=\"glyphicon glyphicon-arrow-left\"></span> Página Anterior</button>";
    }

    
    
    
    
    public static function MAIN_HEADER($text){
        echo "<h3><span class=\"glyphicon glyphicon-tasks\"></span> $text</h3><hr>";
    }
    
    public static function INCLUDE_HEADER($text){
        echo "<h3><span class=\"glyphicon glyphicon-file\"></span> $text</h3><hr>";
    }
    
    public static function UPDATE_HEADER($text){
        echo "<h3><span class=\"glyphicon glyphicon-pencil\"></span> $text</h3><hr>";
    }

    public static function SEARCH_HEADER($text){
        echo "<h3><span class=\"glyphicon glyphicon-search\"></span> $text</h3><hr>";
    }
    
    public static function LOOK_HEADER($text){
        echo "<h3><span class=\"glyphicon glyphicon-eye-open\"></span> $text</h3><hr>";
    }

}
